package com.cm.caseManagement.pojo.entity;

import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 已判未执行对象 cm_convicted_not_executed
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmConvictedNotExecuted extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 案件id */
    @Excel(name = "案件id")
    private Long caseId;

    /** 一审诉讼裁决日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "一审诉讼裁决日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date firstTrialJudgmentDate;

    /** 一审诉讼裁决执行期限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "一审诉讼裁决执行期限", width = 30, dateFormat = "yyyy-MM-dd")
    private Date firstTrialExecutionDeadline;

    /** 二审诉讼裁决日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "二审诉讼裁决日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date secondTrialJudgmentDate;

    /** 二审诉讼裁决执行期限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "二审诉讼裁决执行期限", width = 30, dateFormat = "yyyy-MM-dd")
    private Date secondTrialExecutionDeadline;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setFirstTrialJudgmentDate(Date firstTrialJudgmentDate)
    {
        this.firstTrialJudgmentDate = firstTrialJudgmentDate;
    }

    public Date getFirstTrialJudgmentDate()
    {
        return firstTrialJudgmentDate;
    }

    public void setFirstTrialExecutionDeadline(Date firstTrialExecutionDeadline)
    {
        this.firstTrialExecutionDeadline = firstTrialExecutionDeadline;
    }

    public Date getFirstTrialExecutionDeadline()
    {
        return firstTrialExecutionDeadline;
    }

    public void setSecondTrialJudgmentDate(Date secondTrialJudgmentDate)
    {
        this.secondTrialJudgmentDate = secondTrialJudgmentDate;
    }

    public Date getSecondTrialJudgmentDate()
    {
        return secondTrialJudgmentDate;
    }

    public void setSecondTrialExecutionDeadline(Date secondTrialExecutionDeadline)
    {
        this.secondTrialExecutionDeadline = secondTrialExecutionDeadline;
    }

    public Date getSecondTrialExecutionDeadline()
    {
        return secondTrialExecutionDeadline;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("firstTrialJudgmentDate", getFirstTrialJudgmentDate())
            .append("firstTrialExecutionDeadline", getFirstTrialExecutionDeadline())
            .append("secondTrialJudgmentDate", getSecondTrialJudgmentDate())
            .append("secondTrialExecutionDeadline", getSecondTrialExecutionDeadline())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
